import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 注册element-ui
Vue.use(ElementUI);

// 导入axios
import axios from 'axios'
// 基地址
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'
// 把 axios 挂载到 Vue.prototype 上
Vue.prototype.$http = axios

// 导入全局样式表
import '@/assets/global.less'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
